package com.crowdfunding.dao;

import com.crowdfunding.bean.Member;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
public interface MemberMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Member record);

    Member selectByPrimaryKey(Integer id);

    List<Member> selectAll();

    int updateByPrimaryKey(Member record);

    Member queryLogin(Map<String, Object> paramMap);
    Integer updateAcctType(Member member);

    Integer updateBaticinfo(Member loginMember);

    int updateEmail(Member loginMember);

    void updateAuthCode(String authcode);

    void updateAuthstatus(Member loginMember);

    Member getMemberById(Integer memberid);

    List<Map<String, Object>> queryCertByMemberId(Integer memberid);
}